package com.mall.order.feign;

import com.common.utils.R;
import com.mall.order.vo.MemberAddressVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("mall-member")
public interface MemberServiceFeign {
    @GetMapping("member/memberreceiveaddress/{memberId}/address")
    public List<MemberAddressVo> getAddress(@PathVariable("memberId") long memberId);
    @RequestMapping("member/memberreceiveaddress/getAddressById/{id}")
    public MemberAddressVo info(@PathVariable("id") Long id);
}
